package com.shrct.businessprocess.customerservice.impl;

import com.shrct.businessprocess.customerservice.RCInstallProgressStatus;
import com.shrct.businessprocess.customerservice.proxy.RCInstallProgressStatusProxy;
import edu.fudan.langlab.domain.code.impl.CodeImpl;
import edu.fudan.mylang.pf.IObjectFactory;
import javax.persistence.DiscriminatorValue;
import javax.persistence.Entity;
import org.eclipse.xtext.xbase.lib.Procedures.Procedure1;

@Entity
@DiscriminatorValue("RCINSTALLPROGRESSSTATUS_TYPE")
public class RCInstallProgressStatusImpl extends CodeImpl implements RCInstallProgressStatus {
  public RCInstallProgressStatusImpl() {
    super();
  }
  
  public static RCInstallProgressStatus create(final IObjectFactory objectFactory) {
    com.shrct.businessprocess.customerservice.RCInstallProgressStatus rCInstallProgressStatus = new com.shrct.businessprocess.customerservice.impl.RCInstallProgressStatusImpl(
    );
    objectFactory.create(rCInstallProgressStatus);
    return rCInstallProgressStatus;			
    
  }
  
  public static RCInstallProgressStatus createRCInstallProgressStatusImpl(final IObjectFactory objectFactory, final Procedure1<RCInstallProgressStatus> init) {
    com.shrct.businessprocess.customerservice.RCInstallProgressStatus rCInstallProgressStatus = new com.shrct.businessprocess.customerservice.impl.RCInstallProgressStatusImpl(
    );
    objectFactory.create(rCInstallProgressStatus);
    init.apply(rCInstallProgressStatus);
    
    return rCInstallProgressStatus;			
    
  }
  
  public RCInstallProgressStatusProxy toProxy() {
    com.shrct.businessprocess.customerservice.proxy.RCInstallProgressStatusProxy proxy = new com.shrct.businessprocess.customerservice.proxy.RCInstallProgressStatusProxy();
    proxy.setId(this.getId());
    if(this instanceof edu.fudan.mylang.pf.INamedModelObject){
    	proxy.setName(((edu.fudan.mylang.pf.INamedModelObject)this).getEntityName());
    }
    return proxy;
    
  }
}
